package com.iias.communication.server;


import com.iias.communication.domain.ServiceInfo;
import com.iias.communication.util.SocketInfoUtils;
import io.netty.channel.Channel;

/**
 * 客户端链接管理
 */
public class ClientMent {


    public static void addCHannel(Channel channel){
        String host = SocketInfoUtils.getHost(channel);
        String[] split = host.split(":");
        String ip = split[0];
        Integer port = Integer.valueOf(split[1]);
        ServiceInfo serviceInfo = new ServiceInfo();
        serviceInfo.setPort(port);
        serviceInfo.setIp(ip);

    }



}
